package cn.schoolwow.ams.module.block.listBlock.common.domain.remoteSelect;

import java.util.List;

public class BlockRemoteSelect {
    /**
     * 是否为级联查询
     * */
    public boolean cascade;

    /**
     * 字段名称
     * */
    public String name;

    /**
     * 显示名称
     * */
    public String label;

    /**
     * 固定值下拉框
     * */
    public List<RemoteSelectOption> options;

    /**
     * 动态返回远程下拉框选项
     * */
    public transient GetRemoteSelectOption getRemoteSelectOption;

    /**
     * 额外参数
     * */
    public String extraParameter;

    /**
     * 设置默认值
     * */
    public String defaultValue;

    public BlockRemoteSelect(String name, String label, List<RemoteSelectOption> options) {
        this.name = name;
        this.label = label;
        this.options = options;
    }

    public BlockRemoteSelect(String name, String label, GetRemoteSelectOption getRemoteSelectOption) {
        this.name = name;
        this.label = label;
        this.getRemoteSelectOption = getRemoteSelectOption;
    }
}
